import { TableColumnType } from "antd";
import type { TableColumnsType, TableProps } from "antd";

 type TableRowSelection<T extends object = object> =
  TableProps<T>["rowSelection"];

interface PropTableType {
  columns: TableColumnType[]; //列表项
  dataSource: any[]; //数据源
  showIndexColumn?: boolean; //展示序列
  bordered?: boolean; //是否展示边框
  title?: string | React.ReactNode; //标题
  footer?: string | React.ReactNode; //页脚
  createAction?: (text, record, index) => React.ReactNode;
  rowSelection?: TableRowSelection; //行选择
  myTitle?: string; //自定义标题
  getbtnGroup?: () => React.ReactNode; //按钮组
}

export type { PropTableType , TableRowSelection };
